package com.winphone.zhgd.config;

/**
 * Created with IntelliJ IDEA.
 * Package: com.winphone.zhgd.config
 * Description : TODO
 * User: zhou
 * Date: 2017/8/2911:36
 * version 1.0.0
 * see:
 */

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

/**
 * 配置装饰器
 * @author lance
 */
public class WebSiteMeshFilter extends ConfigurableSiteMeshFilter{

    @Override
    protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {
        builder.addDecoratorPath("/*", "/WEB-INF/view/layouts/default.jsp")
                .addExcludedPath("/static/*");
    }
}
